/* 全局通用样式
   ========================================================================== */

/* 导入 normalize.css（确保在所有样式之前） */
/* @import url('normalize.css');  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 统一盒模型 */
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif; /* 中文字体 */
  font-size: 14px;
  color: #333; /* 默认文字颜色 */
  line-height: 1.6; /* 行高优化可读性 */
  background-color: #f9f9f9; /* 页面背景色 */
}

a {
  text-decoration: none;
  color: inherit; /* 继承父元素颜色 */
  transition: color 0.3s; /* 过渡效果 */
}

a:hover {
  color: #0066cc; /*  hover 颜色变化 */
}

ul {
  list-style: none; /* 清除列表默认样式 */
}

/* 顶部导航区
   ========================================================================== */

.header {
  background-color: #fff;
  border-bottom: 2px solid #0066cc; /* 蓝色下边框 */
  padding: 16px 0;
}

.header-container {
  display: flex; /* Flex 布局 */
  justify-content: space-between; /* 两端对齐 */
  align-items: center; /* 垂直居中 */
  max-width: 1200px; /* 限制最大宽度 */
  margin: 0 auto; /* 水平居中 */
  padding: 0 20px; /* 左右内边距 */
  flex-wrap: wrap; /* 响应式换行 */
  gap: 12px; /* 元素间距 */
}

.school-name {
  font-size: 18px;
  font-weight: 700;
  color: #0066cc; /* 学校名称蓝色 */
  flex: 1; /* 占比 1 */
  min-width: 180px; /* 最小宽度 */
}

.college-name {
  font-size: 16px;
  color: #333;
  flex: 2; /* 占比 2 */
  min-width: 220px;
  text-align: center; /* 居中 */
}

.motto {
  font-size: 14px;
  color: #666;
  flex: 1; /* 占比 1 */
  min-width: 180px;
  text-align: right; /* 右对齐 */
}

/* 横幅宣传区
   ========================================================================== */

.banner {
  background-color: #0066cc;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-subtitle {
  font-size: 16px;
  opacity: 0.9; /* 透明度 */
}

/* 面包屑导航
   ========================================================================== */

.breadcrumb {
  background-color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: #666;
}

.breadcrumb-container a {
  color: #0066cc;
}

.breadcrumb-container span {
  margin: 0 8px;
}

/* 核心内容区
   ========================================================================== */

.content {
  padding: 30px 0;
}

.content-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px; /* 模块间距 */
  flex-wrap: wrap; /* 响应式换行 */
}

/* 通用模块样式 */
.section {
  display: flex;
  flex-direction: column;
  flex: 1; /* 自适应宽度 */
  min-width: 300px; /* 最小宽度 */
  background-color: #fff;
  border-radius: 8px; /* 圆角 */
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 阴影 */
}

.section-title {
  font-size: 18px;
  color: #0066cc;
  border-left: 4px solid #0066cc; /* 左侧蓝色竖线 */
  padding-left: 12px;
  margin-bottom: 20px;
}

/* 新闻列表样式 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 列表项间距 */
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #eee; /* 虚线分隔 */
}

.news-link {
  font-size: 14px;
  color: #333;
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 超出隐藏 */
  text-overflow: ellipsis; /* 省略号 */
  flex: 1; /* 占满剩余宽度 */
  margin-right: 12px;
}

.news-link:hover {
  color: #0066cc;
  text-decoration: underline; /* 下划线 */
}

.news-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

/* 学工天地列表样式 */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.work-link {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.work-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* 分页控件样式 */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center; /* 居中 */
}

.pagination-list {
  display: flex;
  gap: 8px;
}

.pagination-item {
  list-style: none;
}

.pagination-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination-link:hover {
  border-color: #0066cc;
  color: #0066cc;
  text-decoration: none;
}

.pagination-item.active .pagination-link {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.pagination-item.disabled .pagination-link {
  color: #999;
  border-color: #eee;
  cursor: not-allowed; /* 禁用光标 */
}

.pagination-item.disabled .pagination-link:hover {
  color: #999;
  border-color: #eee;
}

/* 新闻详情页样式 */
.news-detail-title {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  padding-left: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.news-content p {
  margin-bottom: 20px;
  text-indent: 2em; /* 首行缩进 */
}

.news-content h3 {
  font-size: 18px;
  margin: 24px 0 16px;
  color: #0066cc;
}

.news-content ul {
  margin-bottom: 20px;
  padding-left: 2em;
  list-style-type: disc; /* 项目符号 */
}

.news-content li {
  margin-bottom: 8px;
}

/* 新闻底部操作区 */
.news-footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.share-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-title {
  font-size: 14px;
  color: #666;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%; /* 圆形 */
  background-color: #f5f5f5;
  color: #333;
  transition: all 0.3s;
}

.share-link:hover {
  background-color: #0066cc;
  color: #fff;
}

.back-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #0066cc;
  border-radius: 4px;
  color: #0066cc;
  transition: all 0.3s;
}

.back-list-btn:hover {
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
}

/* 底部联系区
   ========================================================================== */

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap; /* 响应式换行 */
  gap: 20px; /* 元素间距 */
}

.contact-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  font-size: 16px;
}

.copyright {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  text-align: center;
  width: 100%; /* 独占一行 */
}

/* 响应式适配
   ========================================================================== */

/* 平板设备 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column; /* 垂直排列 */
    align-items: center;
    gap: 8px;
  }

  .school-name,
  .college-name,
  .motto {
    text-align: center; /* 居中 */
    min-width: auto;
  }

  .content-container {
    gap: 20px; /* 减小间距 */
  }

  .news-footer {
    justify-content: center; /* 居中 */
  }
}

/* 移动设备 */
@media (max-width: 480px) {
  .banner-title {
    font-size: 20px;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .section {
    padding: 16px;
  }

  .news-detail-title {
    font-size: 20px;
  }

  .news-content {
    font-size: 15px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}